package com.example.qxfw.ybzz.service;

import com.example.qxfw.common.entity.qx.TownshipForecast;
import com.example.qxfw.yjqx.dto.RegionFcstDto;

import java.util.List;

public interface TownshipForecastService {

    /**
     * 获取乡镇预报
     * @param forecastTime
     * @param strTimeChar
     * @param stationId
     * @return
     */
    List<TownshipForecast> getList(String forecastTime,String strTimeChar,String stationId);

    /**
     * 更新乡镇预报
     * @param townshipForecast
     * @return
     */
    Integer update(TownshipForecast townshipForecast);

    /**
     * 删除乡镇预报
     * @param dateChar
     * @param strTimeChar
     * @param stationList
     * @return
     */
    Integer delete(String dateChar, String strTimeChar, String stationList);

    /**
     * 保存乡镇预报
     * @param townshipForecast
     * @return
     */
    Integer save(TownshipForecast townshipForecast);

    /**
     * 获取乡镇预报最新时间
     * @return
     */
    List<TownshipForecast> getMaxTime();

    /**
     * 获取精细化预报
     * @param dateChar
     * @param timeChar
     * @param nTimes1
     * @param nTimes2
     * @param city
     * @return
     */
    List<TownshipForecast> getList(String dateChar,String timeChar, Integer nTimes1, Integer nTimes2, String city);

    List<TownshipForecast> listByParam1(String dateChar, String nTimes, String stationId, String colum , String maxTemp, String minTemp);

    List<TownshipForecast> listByParam2(String dateChar, String nTimes, String stationId, String colum, String maxTemp, String minTemp);

    List<TownshipForecast> getList3(String dateChar,String stationId,String minTemp,String maxTemp);

    List<TownshipForecast> getList4(String dateChar,String stationId,String minTemp);

    List<TownshipForecast> getList5(String dateChar,String stationId,String maxTemp);

    List<TownshipForecast> getList6(String dateChar,String stationId,String minTemp,String maxTemp);

    List<TownshipForecast> getList7(String dateChar,String timeChar,String nTimes);

    List<TownshipForecast> getList8(String date,String time,String nTimes1, String nTimes2);

    List<TownshipForecast> getList9(String date,String time,String nTimes1,String nTimes2,String stationId);

    List<TownshipForecast> getList10(String date, String time, String nTimes1, String nTimes2);

    List<TownshipForecast> listByParam(String dateChar,String timeChar,Integer nTimes1,Integer nTimes2,String stationId);

    List<String> getRain(String dateChar,String timeChar,String nTimes,String rain,String stationId);

    List<String> getTemp(String dateChar,String timeChar,String nTimes,String temp,String stationId);

    List<String> getWindS(String dateChar,String timeChar,String nTimes,String winds,String stationId);

    List<String> getPress(String dateChar,String timeChar,String nTimes,String press,String stationId);

    List<String> getHumid(String dateChar,String timeChar,String nTimes,String humid,String stationId);

    List<String> getDateChar();

    List<TownshipForecast> listByRegion(RegionFcstDto regionFcstDto);

    List<Double> getMaxTemp(String dateChar,String nTimes,String timeChar,String stationId);
    List<Double> getAvgHumid(String dateChar,String nTimes,String timeChar,String stationId,Double minHumid,Double maxHumid);

}
